<template>
  <div class="app">
    <!-- 中间的 路由 router-view 区域 -->
    <div class="main">
      <router-view></router-view>
    </div>

    <!-- 底部 Tabbar 区域 -->
    <div class="Tabbar" @click="viewactive">
      <ul>
        <router-link to="/job" tag="li">
          <div class="o"></div>
          <div class="content">职位</div>
        </router-link>
        <router-link to="/company" tag="li">
          <div class="s"></div>
          <div class="content">公司</div>
        </router-link>
        <router-link to="/news" tag="li">
          <div class="t"></div>
          <div class="content">消息</div>
        </router-link>
        <router-link to="/my" tag="li">
          <div class="f"></div>
          <div class="content">我的</div>
        </router-link>
      </ul>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {};
  },
  methods: {
    viewactive(e) {
     

      
    }
  }
};
</script>


<style lang="scss" scoped>
ul,
li {
  padding: 0;
  margin: 0;
}

li {
  list-style: none;
  float: left;
}
.app {
  position: absolute;
  width: 100vw;
  height: 100vh;
  .main {
    position: absolute;
    top: 0;
    width: 100vw;
    height: 90vh;
  }
  .Tabbar {
    position: fixed;
    bottom: 0;
    width: 100vw;
    height: 10vh;
    background: #fefefe;
    ul {
      position: absolute;
      width: 100vw;
      height: 10vh;
      display: flex;
      -webkit-justify-content: space-around;
      justify-content: space-around;
      li {
        position: relative;
        width: 20vw;
        height: 10vh;
        // border: 1px solid red;
        .o,
        .t,
        .s,
        .f {
          display: inline-block;
          width: 5vh;
          height: 5vh;
          position: absolute;
          top: 10%;
          left: 25%;
        }
        .o {
          background: url("./images/所属职位.png");
          background-position: center;
          background-size: cover;
          background-repeat: no-repeat;
        }
        .s {
          background: url("./images/公司.png");
          background-position: center;
          background-size: cover;
          background-repeat: no-repeat;
        }
        .t {
          background: url("./images/消息.png");
          background-position: center;
          background-size: cover;
          background-repeat: no-repeat;
        }
        .f {
          background: url("./images/我的.png");
          background-position: center;
          background-size: cover;
          background-repeat: no-repeat;
        }
        .content {
          position: absolute;
          bottom: 10%;
          left: 30%;
        }
      }
    }
  }
}

.v-enter {
  opacity: 0;
  transform: translateX(100%);
}

.v-leave-to {
  opacity: 0;
  transform: translateX(-100%);
  position: absolute;
}

.v-enter-active,
.v-leave-active {
  transition: all 0.5s ease;
}
</style>
